<?php
ob_start();?><?php
include("config.php");
require_once("auth.php");
$odate=$_POST['txtOrderDate'];
$od=explode("-", $odate);
$odate=$od[2].'-'.$od[1].'-'.$od[0];
$payid=$_POST['ddlPaymentId'];
$cid=$_POST['ddlCustomerId'];
$sid=$_POST['txtShipperId'];
$st=$_POST['txtSalesTax'];
$data=mysql_query("insert into orders values('','$cid','$sid','$payid','$sid','$st')");
if($data)
{
header("location: displayorders.php?added=added");
}
else
{
echo mysql_error();
}
?>
<?php ob_flush();
?>